import request from '@/utils/request'
// import data from '@/views/pdf/content'

export function login(data) {
  return request({
    url: 'user/login',
    method: 'post',
    data
  })
}

export function getInfo(token) {
  return request({
    url: '/admin/user/my_info',
    method: 'Post'

  })
}

export function logout() {
  return request({
    url: '/vue-element-admin/user/logout',
    method: 'post'
  })
}
// 获取用户
// 获取用户
export const postUsser = (data) => {
  return request.post('/admin/user/list', {
    page: data.page,
    limit: data.limit,
    keyword: data.keyword
  }
  )
}
